module.exports = {
	table: 'opendb-device',
	fields: [
		{
			type: 'string',
			key: 'appid',
			comment: 'DCloud appid',
		},
		{
			type: 'string',
			key: 'device_id',
			comment: '设备唯一标识',
		},
        {
            type: 'string',
            key: 'vendor',
            comment: '设备厂商'
        },
        {
            type: 'string',
            key: 'push_clientid',
            comment: '推送设备客户端标识'
        },
        {
            type: 'string',
            key: 'imei',
            comment: '国际移动设备识别码IMEI(International Mobile Equipment Identity)'
        },
        {
            type: 'string',
            key: 'oaid',
            comment: 'Android设备广告标识符(Android Advertising ID)'
        },
        {
            type: 'string',
            key: 'idfa',
            comment: 'iOS设备广告标识符(iOS Advertising ID)'
        },{
            type: 'string',
            key: 'imsi',
            comment: '国际移动用户识别码(International Mobile Subscriber Identification Number)'
        },
        // 从以下注释解析过来
        {
            type: 'string',
            key: 'model',
            comment: '设备型号'
        },
        {
            type: 'string',
            key: 'platform',
            comment: '平台类型'
        },
        {
            type: 'string',
            key: 'uni_platform',
            comment: 'uni-app 运行平台，与条件编译平台相同。'
        },
        {
            type: 'string',
            key: 'os_name',
            comment: '操作系统名称ios|android|windows|mac|linux'
        },
        {
            type: 'string',
            key: 'os_version',
            comment: '操作系统版本号 '
        },
        {
            type: 'string',
            key: 'os_language',
            comment: '操作系统语言 '
        },
        {
            type: 'string',
            key: 'os_theme',
            comment: '操作系统主题 light|dark'
        },
        {
            type: 'string',
            key: 'pixel_ratio',
            desc: '设备像素比'
        },
        {
            type: 'string',
            key: 'network_model',
            comment: '设备网络型号wifi\/3G\/4G\/'
        },
        {
            type: 'string',
            key: 'window_width',
            comment: '设备窗口宽度 '
        },
        {   
            type: 'string',
            key: 'window_height',
            comment: '设备窗口高度'
        },
        {
            type: 'string',
            key: 'screen_width',
            comment: '设备屏幕宽度'
        },
        {
            type: 'string',
            key: 'screen_height',
            comment: '设备屏幕高度'
        },
        {
            type: 'string',
            key: 'rom_name',
            comment: 'rom 名称'
        },
        {
            type: 'string',
            key: 'rom_version',
            comment: 'rom 版本'
        },
        {   
            type: 'double',
            key: 'location_latitude',
            comment: '纬度'
        },
        {
            type: 'double',
            key: 'location_longitude',
            comment: '经度'
        },
        {
            type: 'string',
            key: 'location_country',
            comment: '国家'
        },
        {
            type: 'string',
            key: 'location_province',
            comment: '省份'
        },
        {   
            type: 'string',
            key: 'location_city',
            comment: '城市'
        },
        {
			type: 'number',
			key: 'create_date',
			comment: '创建时间',
		},
        {
			type: 'number',
			key: 'last_update_date',
			comment: '最后一次修改时间',
		},
	],
};
